package com.smart.mac.utls;

/**
 * LocalSessionUtils
 *
 * @Description
 * @Author mac
 */
public class LocalSessionUtils {

    //创建线程安全类
    private static InheritableThreadLocal<Object> contexHold = new InheritableThreadLocal<>();

    public static <T> void put(T t){
        contexHold.set(t);
    }

    public static <T> T get(){
        return (T)contexHold.get();
    }

    public static void remove(){
        contexHold.remove();
    }



}
